<!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="shortcut icon" href="<?=base_url();?>favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="<?=base_url();?>lib/x_admin/css/font.css">
    <link rel="stylesheet" href="<?=base_url();?>lib/x_admin/css/xadmin.css">
    <script type="text/javascript" src="<?=base_url();?>lib/jquery.js"></script>
    <script type="text/javascript" src="<?=base_url();?>lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="<?=base_url();?>lib/x_admin/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
    //禁用回车键  后续解决了焦点问题 再改进
    //禁用原因是： 按回车会重复打开弹出窗口
     /* $(document).keydown(function(event){
        switch(event.keyCode){
           case 13:return false; 
           }
        });
        */
        $(document).ready(function(){
          // 改变不可输入文本框背景色
          $("input[disabled=true]").css("background","#FBFBFB"); 
          // 不允许表单出现空格(注意 \ 转义)
          $("form input[type='']").attr("onkeyup","this.value=this.value.replace(/\\s+/g,'')");
          
        });
    </script>
  </head>
  
  <body>
   <p id="check"  style="display: none">
  <?php 
    // 检测按钮时 传递目录和控制器
    $directory=substr($this->router->fetch_directory(),0,-1); 
    $controller = $this->router->fetch_class();
    echo '{"directory":"'.$directory.'","controller":"'.$controller.'"}';
  ?> </p>